package com.test.stream.bean;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

@Data
@NoArgsConstructor
@AllArgsConstructor
@XmlRootElement(name="bean")
@XmlAccessorType(XmlAccessType.FIELD)
public class Bean {

   @XmlAttribute(name = "id")
   private String id;
   @XmlAttribute(name = "name")
   private String name;
   @XmlAttribute(name = "age")
   private String age;
   @XmlAttribute(name = "class")
   private String clazz;

}
